import "../src/assets/global.css";

import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import * as echarts from "echarts";
import { library } from '@fortawesome/fontawesome-svg-core'
import { faCaretDown } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import axios from 'axios';
// import echartsGL from 'echarts-gl'
// Vue.prototype.$echartsGL = echartsGL

const instance = axios.create({
  baseURL: '/api',
  proxy: {
    host: 'localhost',
    port: 8080,
  },
});



const app = createApp(App);

// app.use(VueAxios,axios)
// app.use(VueCookies);


app.use(router);
app.use(ElementPlus);
app.config.globalProperties.$echarts = echarts;
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.mount("#app");
